#pragma once
#include "comdef.h"
#include "Error.h"

enum ECMDLEGIC
{
	ECMD_SETSTATE		= 0x00,
	ECMD_GETCARDS,
	ECMD_SELECTCARD,
	ECMD_SELECTFILE,
	ECMD_WRITE,
	ECMD_READ,
	ECMD_ENVELOPE		= 0x08,
	ECMD_GETIDB			= 0x0A,
	ECMD_SETPORT,
	ECMD_SETBUZZ		= 0x0D,
	ECMD_GETCARDS_EXT	= 0x17,
};

enum ESTATE
{
	EGETSTATE			= 0x00,
	ERESET,
	EIDLE,
	ESTOP,
	EWATCH,
	ESAMHANDLE,
	ESAMACCEPT,
	ESAMDECLINE,
	ESAMACCEPTOTP
};

enum ECARDTYPE
{
	ECARD_LEGIC			= 0x00,
	ECARD_ISO15693,
	ECARD_ISO14443A,
	ECARD_ISO14443B,
	ECARD_INSIDESECURE,
	ECARD_SONYFELICA
};

enum ECARDSUBTYPE
{
	ECARD_SUB_ULTRALIGHT_LEVEL1,
	ECARD_SUB_ULTRALIGHT_LEVEL2,
	ECARD_SUB_1K,
	ECARD_SUB_4K,
	ECARD_SUB_DESFIRE_LEVEL1,
	ECARD_SUB_DESFIRE_LEVEL2,
	ECARD_SUB_UNKNOWN,
};

enum ESPEED
{
	ESPEED_106KBS		= 0x00,
	ESPEED_212KBS,
	ESPEED_424KBS,
	ESPEED_UNKNOWN
};

enum EFILETYPE
{
	FILE_IGNORE_SEG		= 0x00,
	FILE_MT				= 0x20,
	FILE_DATA_SEG		= 0x40,
	FILE_LEGIC_SEG		= 0x50,
	FILE_MT_PLUS		= 0xC0
};




